<template>
  <div>
    <button @click="btnClick">btn</button>
  </div>
</template>

<script setup>
import eventBus from "../utils/event-bus";
import { } from "vue"
function btnClick() {
  console.log('btnClick')
  eventBus.emit('whyEvent', { name: 'coderWhy', age: 28 })
}
</script>

<style lang="scss" scoped></style>